/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package principal;


/**
 *
 * @author emmanuel05
 */
public class Ppal {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception{
        
        vista.FormDTOs f=vista.FormDTOs.getInstance();
/*        
    try{
        //Call web service operation
        Fnet_Service service = new Fnet_Service();
        Fnet port = service.getFnetPort();
        
        //initialize WS operation arguments here
        //int codigo=1;

/*      MetodosVarios metodos = new MetodosVarios();
        //crea un abstractDTO con sus valores por defecto y los muestra 
        AbstractNetDTO andto =  metodos.creaAbstractNetDto();
        System.out.println("Direccion = " + andto.getAddress()); 
        System.out.println("Contact Name = " + andto.getContactName()); 
        System.out.println("Company Name = " + andto.getCompanyName()); 
        System.out.println("Nombre de Red Abstracta = " + andto.getName());
                
        MetodosVarios armadores = new MetodosVarios(); 
        
        //prueba getCampaigns()--------------------
        GetCampaignsAnswer rta = port.getCampaigns(armadores.creaPaginationDTO());
        java.util.List<CompleteCampaignDTO> lista=rta.getData();
        for (int i=0;i<lista.size();i++)
            {   System.out.println(lista.get(i).getCompanyName()); 
                System.out.println(lista.get(i).getDescription());   
                System.out.println(lista.get(i).getAddress()); 
                System.out.println("-------" + i + "---------"); 
            }        
        
        //prueba getCategory()-------------------
        CategoryDTO cdto = port.getCategory(new Long(1)).getCategoryDTO();
        System.out.println("------- Nombre categoria:" + cdto.getName() + " -------");
        System.out.println("------- Ponderacion puntos por moneda:" + cdto.getWeightPointValueMoney() + " -------");
        
        //prueba getNets()-----------------------
        GetNetsAnswer ndto = port.getNets(armadores.creaPaginationDTO());
        java.util.List<AbstractNetDTO> list=ndto.getData();
        for (int i=0;i<list.size();i++)
            {   System.out.println(list.get(i).getCompanyName()); 
                System.out.println(list.get(i).getDescription());   
                System.out.println(list.get(i).getAddress()); 
                System.out.println("-------" + i + "---------"); 
            }                       
        
        } catch (Exception ex) {
          throw new Exception (ex.getMessage());
        }
*/                
    }

}
